<template>
  <el-icon :size="props.size" :color="props.color">
    <component :is="props.name"></component>
  </el-icon>
</template>

<script setup>
const props = defineProps({
  name: {
    type: String,
    required: true,
  },
  size: {
    type: String,
    default: "",
  },
  color: {
    type: String,
    default: "",
  },
})
</script>
